package com.chenxi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.SessionAttributes;

@SpringCloudApplication
//将认证数据存入session中
@SessionAttributes("authorizationRequest")
@MapperScan(basePackages = {"com.chenxi.mapper*"})
@RestController
@EnableCaching
public class CloudOauth2ServerApplication{

	@RequestMapping("/")
	public String foo(){
		return "ddd";
	}

	public static void main(String[] args) {
		SpringApplication.run(CloudOauth2ServerApplication.class, args);
	}

}
